package com.twu.biblioteca;

/**
 * Created by theyes on 17/01/2014.
 */
public abstract class LibraryItem {


    public int quantity;

    public LibraryItem(int q)
    {
        quantity =q;
    }

    public boolean checkOut() {

        if(quantity >= 1)
        {
            quantity--;
            return true;
        }
        else
        {
            return false;
        }

    }

    public void checkIn() {
        quantity++;
    }


}
